#ifndef CUSTOMER_RECORD_H
#define CUSTOMER_RECORD_H

#include "export_excel_object.h"

#include <QWidget>

#include <qsqltablemodel.h>

#include <control/contrl_logic.h>
namespace Ui {
class CustomerRecord;
}

class CustomerRecord : public QWidget
{
    Q_OBJECT

public:
    explicit CustomerRecord(QWidget *parent = nullptr);
    ~CustomerRecord();

private slots:
    void on_export_btn_clicked();

    void on_update_btn_clicked();

    void setTimeEdit();
    void on_select_clicked();

    void on_clear_btn_clicked();

    void on_create_table_btn_clicked();
signals:
    void signOtherChart(QString,QMap<QString , int>);
private:
    Ui::CustomerRecord *ui;
    ExportExcelObject exportExcle;
    QSqlQueryModel * model;
    QString lastQuery="";
};

#endif // CUSTOMER_RECORD_H
